package com.greedy.bulls.stock.cat.demo.account.catutils;

import com.dianping.cat.Cat;

import java.util.HashMap;
import java.util.Map;

/**
 * @Author: Yanxy
 * @Date: Created in:2023-06-19
 * Description: 记录Cat监控的属性信息
 */
public class CatContext implements Cat.Context{

    /**
     * 存储链路监控相关信息
     */
    private Map<String, String> properties = new HashMap<>();

    @Override
    public void addProperty(String key, String value) {
        properties.put(key, value);
    }

    @Override
    public String getProperty(String key) {
        return properties.get(key);
    }

}
